﻿<UserControl x:Class="MP3tunes.LockerPlayer.UserControls.Credentials"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
       FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource BaseForeground}"
            
    d:DesignHeight="400" d:DesignWidth="480">




    <Grid x:Name="LayoutRoot" Background="{StaticResource DefaultBackground}" Margin="5,0,0,5">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="220"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
            <RowDefinition Height="100"/>
            <RowDefinition Height="85"/>
                <RowDefinition Height="85"/>
                <RowDefinition Height="85"/>
                <RowDefinition Height="85"/>
            <RowDefinition Height="85"/>
            <RowDefinition Height="85"/>
        </Grid.RowDefinitions>
        <Grid Grid.Row="0" Grid.ColumnSpan="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="*"/>

            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="90"/>
            
            </Grid.RowDefinitions>
            <Image Source="/MP3tunes.LockerPlayer;component/Images/MP3tunes2.png" Width="120" VerticalAlignment="Top" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="0"></Image>
            <StackPanel Orientation="Vertical" Grid.Row="0" Grid.Column="1">
                <TextBlock Text="Locker Player" FontSize="45" Foreground="{StaticResource BaseForeground}"/>
                <TextBlock Text="Login" FontSize="22" Foreground="{StaticResource BaseForeground}"/>
            </StackPanel>
            
        </Grid>

        <TextBlock Margin="10,0,0,0" Text="User Name:" Grid.Row="1" Grid.Column="0" Style="{StaticResource PhoneTextLargeStyle}" VerticalAlignment="Center" Foreground="{StaticResource BaseForeground}"/>
        <TextBox Name="txtUserName" Text="demo@mp3tunes.com" Grid.Row="1" Grid.Column="1"   VerticalAlignment="Center" Background="LightGray"/>
        <TextBlock Margin="10,0,0,0"  Text="Password:" Grid.Row="2" Grid.Column="0" Style="{StaticResource PhoneTextLargeStyle}" VerticalAlignment="Center" Foreground="{StaticResource BaseForeground}"/>
        <TextBox Name="txtPassword"  Grid.Row="2" Grid.Column="2"  Text="demo" VerticalAlignment="Center" Background="LightGray" />

        <CheckBox Name="saveCreds" Grid.Row="3" Grid.Column="0"  BorderThickness="1" BorderBrush="Gray" IsChecked="True" Background="LightGray">
            <TextBlock Text="Save Info"  Style="{StaticResource PhoneTextLargeStyle}" Foreground="{StaticResource BaseForeground}" />
        </CheckBox>
        <Button Name="saveBtn" Grid.Row="3" Grid.Column="1" Content="Login"  Height="80" Click="Button_Click" Style="{StaticResource MP3TunesButtonNormalStyle}" Foreground="White">


            </Button>
        <TextBlock Visibility="Collapsed" Name="errorMessage" Grid.Row="4" Grid.ColumnSpan="2" Foreground="Red" HorizontalAlignment="Center" TextAlignment="Center"/>
        <ProgressBar Name="progressBar1" IsIndeterminate="False" Grid.ColumnSpan="2" Grid.Row="4" Style="{StaticResource PerformanceProgressBar}" />

    </Grid>
   
</UserControl>
